import org.apache.commons.io.IOUtils;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class text_FileReader {

    public static void main(String[] args) throws FileNotFoundException, IOException {

            FileReader fileReader = new FileReader("test2.txt");
            System.out.println(IOUtils.toString(fileReader));

        }

    }

